﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BMSQ.Admin.CollectionList
{
    public partial class Show : PageBase
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    string Collection_ID = strid;
                    ShowInfo(Collection_ID);
                }
            }
        }

        private void ShowInfo(string Collection_ID)
        {
            BLL.Collection_List bll = new BLL.Collection_List();
            Model.Collection_List model = bll.GetModel(Collection_ID);
            this.lblCollection_ID.Text = model.Collection_ID;
            this.lblCollectionBy.Text = model.CollectionBy;
            this.lblCollectionType.Text = model.CollectionType.ToString();
            this.lblCollectionTo.Text = model.CollectionTo;
            this.lblCollection_Date.Text = model.Collection_Date.ToString();

        }
    }
}